<template>
  <view class="content">
    <view>demo</view>
    <image class="logo" src="/static/logo.png" />
    <view class="text-area">
      <text class="title">{{ title }}</text>
    </view>
    <view>{{ counter.count }}</view>
    <view @click="counter.increment">add</view>
    <view @click="counter.reduce">reduce</view>
    <u-tab :list="tabList"></u-tab>
    <uni-countdown :day="1" :hour="1" :minute="12" :second="40" />
    <icon type="success" size="26" />
    <view class="bg"></view>
    <view class="svg"></view>
  </view>
</template>

<script setup lang="ts">
import { test } from "@/api/index"
import { useCounterStore } from "@/stores/counter"
import { onMounted, ref } from 'vue'

const counter = useCounterStore()
const title = ref('Hello')
const tabList = ["已打款", "未打款"];

onMounted(() => {
  test({ a: 1 })
})
</script>

<style>
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bg {
  width: 60px;
  height: 60px;
  background: url("/static/banner.png");
}

.svg {
  width: 60px;
  height: 60px;
  background: url("/static/start.svg");
}

.logo {
  height: 200rpx;
  width: 200rpx;
  margin-top: 200rpx;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50rpx;
}

.text-area {
  display: flex;
  justify-content: center;
}

.title {
  font-size: 36rpx;
  color: #8f8f94;
}
</style>
